package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.adapter.DatePersonAdapter;
import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.main.date.dateperson.DatePersonActivity;
import com.kelvin.paopao.module.main.date.dateperson.DatePersonPresenter;
import com.kelvin.paopao.module.main.date.dateperson.IDatePersonPresenter;

import dagger.Module;
import dagger.Provides;


/**
 * Created by MCK on 2017/5/17.
 */
@Module
public class DatePersonModule {
    private DatePersonActivity mView;

    public DatePersonModule(DatePersonActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public IDatePersonPresenter providePresenter() {
        return new DatePersonPresenter(mView);
    }

    @PerActivity
    @Provides
    public DatePersonAdapter provideAdapter() {
        return new DatePersonAdapter(mView);
    }
}
